//这里写接口  就是类型判断

interface RouterItem {
    path?:string,
    to?:string,
    name?:string,
    component?:()=>JSX.Element,
    children?:RouterItem[],
    from?:string
}

export type{RouterItem}